const requestApi = function(name,params){
		uni.showLoading({
			title:'加载中...',
			mask:true
		})
		console.log('请求参数=========',params)
		return new Promise((resolve,reject)=>{
			uniCloud.callFunction({
				name:name,
				data:params,
				success: (res) => {
					console.log('请求数据成功------',res);
					resolve(res);
				},
				fail:msg => {
					reject(msg);
				},
				complete: () => {
					uni.hideLoading();
				}
			});
		})
	}
	export default requestApi;